package com.example.administrator.School;

import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import com.example.administrator.School.common.result.Result;
import com.example.administrator.School.until.BaseDetailActivity;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import butterknife.OnClick;

public class KcbActivity extends BaseDetailActivity<Map> {

    @Override
    protected int getContentView() {
        return R.layout.activity_kcb;
    }

    @Override
    protected boolean initBundle(Bundle bundle) {
        return true;
    }

    //页面传值回调
    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

    }

    @Override
    public void initWidget() {
        super.initWidget();
    }

    @Override
    protected void initData() {
        super.initData();
//        List<String> listdata = new ArrayList<String>();
//        listdata.add("7.30-8.10");
//        listdata.add("7.30-8.10");
//        listdata.add("7.30-8.10");
//        listdata.add("7.30-8.10");
//        ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(KcbActivity.this,R.layout.list_item,listdata);//listdata和str均可
//        listView1.setAdapter(arrayAdapter);
//
//        List<String> listdata1 = new ArrayList<String>();
//        listdata.add("7.30-8.10");
//        listdata.add("7.30-8.10");
//        listdata.add("7.30-8.10");
//        listdata.add("7.30-8.10");
//        ArrayAdapter<String> arrayAdapter1 = new ArrayAdapter<String>(KcbActivity.this,R.layout.list_item,listdata);//listdata和str均可
//        listView2.setAdapter(arrayAdapter1);
    }

    @Override
    protected Type getType() {
        return new TypeToken<Result<Map>>() {
        }.getType();
    }

    @Override
    protected void setData(Result<Map> result) {

    }

    @OnClick(R.id.close)
    void close(){
        finish();
    }

}

